package com.gsafety.wellsfort.dao.security;

import com.gsafety.wellsfort.domain.model.security.Role;

import java.util.List;
import java.util.Map;

public interface RoleDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> pageQuery(Map<String,Object> params);

    Integer countRole(Map<String,Object> params);

    List<Role> getAllRole();

    List<Role> selectRoleByAdminId(Integer adminId);

}